﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("c_client_id", Name = "idxclientid")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_mq_client
{
    [Key]
    public long c_id { get; set; }

    [StringLength(50)]
    public string c_guid { get; set; }

    /// <summary>
    /// 客户id
    /// </summary>
    [StringLength(50)]
    public string c_client_id { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? c_add_time { get; set; }

    /// <summary>
    /// 0在线，1下线
    /// </summary>
    public int? c_online { get; set; }

    /// <summary>
    /// 上线时间
    /// </summary>
    [Column(TypeName = "datetime")]
    public DateTime? c_on_time { get; set; }

    /// <summary>
    /// 0有效，1禁用
    /// </summary>
    public int? c_status { get; set; }

    /// <summary>
    /// 下线时间
    /// </summary>
    [Column(TypeName = "datetime")]
    public DateTime? c_off_time { get; set; }

    /// <summary>
    /// 主题
    /// </summary>
    [StringLength(255)]
    public string c_topic { get; set; }
}
